package com.szcatic.ework.service.auth.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.szcatic.ework.dao.auth.PermissionDao;
import com.szcatic.ework.service.auth.PermissionService;
import com.szcatic.ework.vo.auth.Permission;
/**
 * 权限管理Service实现类
 * @author Administrator
 *
 */
@Service("permissionServiceImpl")
public class PermissionServiceImpl implements PermissionService{
	
	@Autowired
	private PermissionDao permissionDao;

	@Override
	public List<Permission> queryPermissionList() {
		return permissionDao.queryPermissionList();
	}

	@Override
	public void add(Permission t) {
		permissionDao.add(t);
	}

	@Override
	public void update(Permission t) {
		permissionDao.update(t);
	}

	@Override
	public void delete(Permission t) {
		permissionDao.delete(t);
	}

	@Override
	public int checkPermissionExist(Permission permission) {
		return permissionDao.checkPermissionExist(permission);
	}

	@Override
	public void deleteList(List<String> idList) {
		permissionDao.deleteList(idList);
	}

	@Override
	public List<Permission> queryList() {
		return null;
	}

}
